﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OfferReport.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <!--#include virtual="include/Head.ascx"-->
    <script type='text/javascript' src="assets/js/jquery.ui.datepicker.js"></script>
    <script type="text/javascript">
        $().ready(function () {
            $("#txtFrom").datepicker({ dateFormat: "dd-mm-yy" });
            $("#txtTo").datepicker({ dateFormat: "dd-mm-yy" });
        });
    </script>
    <style>
        td span
        {
            font-size: 12px;
        }
    </style>
</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/top.ascx"-->
        </div>
        <div id="main-content1">
            <div class="content-box">
                <form id="frmEdit" runat="server" method="post">
                <div class="content-box-header">
                    <h3 style="cursor: s-resize;">
                        OFFER REPORT
                    </h3>
                    <div class="clear">
                    </div>
                </div>
                <!--Customer Offer Prices-->
                <div class="content-box-header">
                    <h3 style="cursor: s-resize;">
                        Filter By
                    </h3>
                    <%if (nPermissions > 7)
                      { %>
                    <asp:DropDownList class="cls" ID="drAdminUser" runat="server" Width="70px" TabIndex="16"
                        AutoPostBack="True" OnSelectedIndexChanged="drAdminUser_Selected">
                    </asp:DropDownList>
                    <%} %>
                    &nbsp;
                    <asp:DropDownList ID="ddOfferPriceSer" Width="150px" runat="server" AutoPostBack="true"
                        OnSelectedIndexChanged="ddOfferPriceSer_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddPricingName" Width="150px" runat="server" AutoPostBack="true"
                        OnSelectedIndexChanged="ddPricingName_SelectedIndexChanged">
                    </asp:DropDownList>
                    &nbsp; From:
                    <asp:TextBox ID="txtFrom" CssClass="calendar-icon" runat="server" value="From" onclick="if(this.value=='From'){this.value=''; this.style.color='#000'}"
                        onblur="if(this.value==''){this.value='From'; this.style.color='#555'}" Width="125px"></asp:TextBox>
                    To:
                    <asp:TextBox ID="txtTo" CssClass="calendar-icon" runat="server" value="To" Width="125px"
                        onclick="if(this.value=='To'){this.value=''; this.style.color='#000'}" onblur="if(this.value==''){this.value='To'; this.style.color='#555'}"></asp:TextBox>
                    <asp:Button ID="btnSearch" Text="Search" runat="server" CssClass="button" Style="margin: 9px 10px;"
                        OnClick="btnSearch_Click" />
                </div>
                <div class="clear">
                </div>
                <fieldset>
                    <asp:Repeater ID="rptCusomerOfferPrices" runat="server">
                        <ItemTemplate>
                            <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'">
                                <td align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "Index")%>
                                    <asp:HiddenField ID="ID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ID")%>'>
                                    </asp:HiddenField>
                                </td>
                                <td align="left">
                                    <asp:Label ID="CrmName" runat="server" Width="100%" Text='<%# DataBinder.Eval(Container.DataItem, "CrmName")%>'
                                        CssClass="clsPod"></asp:Label>
                                </td>
                                <td align="center">
                                    <asp:Label ID="FileNo" runat="server" Width="100%" Text='<%# DataBinder.Eval(Container.DataItem, "CostNumber")%>'
                                        CssClass="clsPod"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:Label ID="Pol" runat="server" Width="100%" Text='<%# DataBinder.Eval(Container.DataItem, "Pol")%>'
                                        CssClass="clsPod"></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:Label ID="Pod" runat="server" Width="100%" Text='<%# DataBinder.Eval(Container.DataItem, "Pod")%>'
                                        CssClass="clsPod"></asp:Label>
                                </td>
                                <%-- <td align="center" style="width: 30px;">
                                    <asp:Label ID="Vols" runat="server" Width="100%" Text='<%# DataBinder.Eval(Container.DataItem, "Vols")%>'></asp:Label>
                                </td>--%>
                                <td>
                                    <asp:Label ID="Dc20" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Dc20")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Dc20_Sell" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Dc20_Sell")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Dc40" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Dc40")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Dc40_Sell" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Dc40_Sell")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Hc40" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Hc40")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Hc40_Sell" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Hc40_Sell")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Rf20" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Rf20")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Rf20_Sell" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Rf20_Sell")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Rf40" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Rf40")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Rf40_Sell" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Rf40_Sell")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="CBM" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "CBM")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="CBM_Sell" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "CBM_Sell")%>'></asp:Label>
                                </td>
                                <%--<td>
                                    <asp:Label ID="KG" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "KG")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="KG_Sell" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "KG_Sell")%>'></asp:Label>
                                </td>--%>
                                <td>
                                    <asp:Label ID="Agent" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Agent")%>'
                                        CssClass="clsCarr"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="PricingName" runat="server" Width="80px" Text='<%# DataBinder.Eval(Container.DataItem, "PricingName")%>'
                                        CssClass="clsCarr"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="OfferPrice_Note" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "OfferPrice_Note")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="UserName" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "UserName")%>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Status" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Status")%>'></asp:Label>
                                </td>
                                <%--<td align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "LastUpdate")%>
                                </td>
                                <td align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "Action")%>
                                </td>--%>
                            </tr>
                        </ItemTemplate>
                        <HeaderTemplate>
                            <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlist">
                                <thead>
                                    <tr>
                                        <th align="center" class="thheader" width="30px">
                                            Stt
                                        </th>
                                        <th align="center" class="thheader" width="200px">
                                            CRM Name
                                        </th>
                                        <th align="center" class="thheader" width="60px">
                                            File No
                                        </th>
                                        <th align="center" class="thheader" width="120px">
                                            Pol
                                        </th>
                                        <th align="center" class="thheader" width="120px">
                                            Pod
                                        </th>
                                        <%-- <th align="center" class="thheader" width="30px">
                                            Vol
                                        </th>--%>
                                        <th align="center" class="thheader" width="50px" colspan="2">
                                            20'dc
                                        </th>
                                        <th align="center" class="thheader" colspan="2">
                                            40'dc
                                        </th>
                                        <th align="center" class="thheader" colspan="2">
                                            40'hc
                                        </th>
                                        <th align="center" class="thheader" colspan="2">
                                            20'rf
                                        </th>
                                        <th align="center" class="thheader" colspan="2">
                                            40'rf
                                        </th>
                                        <th align="center" class="thheader" colspan="2">
                                            CBM
                                        </th>
                                        <%-- <th align="center" class="thheader" colspan="2">
                                            KG
                                        </th>--%>
                                        <th align="center" class="thheader" width="50px">
                                            Agent
                                        </th>
                                        <th align="center" class="thheader" width="50px">
                                            Pricing Name
                                        </th>
                                        <th align="center" class="thheader" width="50px">
                                            Note
                                        </th>
                                        <th align="center" class="thheader" width="50px">
                                            User
                                        </th>
                                        <th align="center" class="thheader" width="50px">
                                            Status
                                        </th>
                                        <%-- <th align="center" class="thheader" width="50px">
                                            Update
                                        </th>
                                        <th align="center" class="thheader" width="100px">
                                            Action
                                        </th>--%>
                                    </tr>
                                </thead>
                        </HeaderTemplate>
                        <FooterTemplate>
                            </TABLE>
                        </FooterTemplate>
                    </asp:Repeater>
                </fieldset>
                <div class="clear">
                </div>
                <div id="footer">
                    <%=strPager%>
                </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
